package com.lala.provider.service;


import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.lala.commom.pojo.Teacher;
import com.lala.commom.pojo.User;
import com.lala.provider.mapper.TeacherMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TeacherServiceImpl implements TeacherService {
    @Autowired
    private TeacherMapper teacherMapper;
    @Override
    public PageInfo<Teacher> selectTeacher(int p ,int s) {
        PageHelper.startPage(p, s);
        PageInfo<Teacher> pageInfo=new PageInfo<>(teacherMapper.selectTeacher());
        return pageInfo;
    }
}
